import * as React from 'react';
import {observer} from 'mobx-react'
import styles from './index.scss';

import StackBar from '../../home/StackBar'
import BarLine from '../../home/BarLine'

interface IProps {
    dataX: string[]
    dataYB: number[]
    dataYL: number[]
}


@observer
class Home extends React.Component<IProps> {

    constructor(props) {
        super(props);
    }


    public render() {
        const {dataX, dataYB, dataYL} = this.props
        return (
            <div className={styles.EChart}>
                <BarLine dataYL={dataYL} dataYB={dataYB} dataX={dataX} />
            </div>
        );
    }
}

export default Home;
